package io.renren.modules.collect.dao;

import io.renren.modules.collect.entity.CollectinfosCustomEntity;
import io.renren.modules.collect.entity.CollectinfosEntity;
import io.renren.modules.sys.dao.BaseDao;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author 
 * @email 
 * @date 2018-10-24 18:48:18
 */
@Mapper
public interface CollectinfosDao extends BaseDao<CollectinfosEntity> {
    //根据项目删除收藏
    int deleteByProject(String[] targetid);

    //删除用户的所有收藏
    int deleteByUser(String[] userinfoid);

    int apiDelete(Map<String, Object> map);

    int apiDeleteBatch(Map<String, Object> map);

    int queryApiTotal(Map<String, Object> map);

    List<CollectinfosCustomEntity> apiCollectList(Map<String, Object> map);

    CollectinfosCustomEntity queryCustomInfo(String collectinfoid);

    List<CollectinfosCustomEntity> queryCustomList(Map<String, Object> map);

    int queryTotalByUser(Map<String, Object> map);

    int isExistCollect(CollectinfosEntity collectinfosEntity);

}
